package 责任链模式;

public class Minister extends Handler{
    public Minister(Handler next) {
        super(next);
    }

    @Override
    public void handler(Request req) {
        System.out.println("部长同意");
        if (req.getDays()>3){
            next.handler(req);
        }
    }
}
